﻿<%@ Control Language="C#" ClassName="AfiDetailFields" %>

<asp:FormView ID="FormView1" runat="server">
	<ItemTemplate>
		<table border="0" cellpadding="3" cellspacing="1">
			<tr>
        <td class="literal"><asp:Label ID="lbldataAfiCode" runat="server" Text="Afi Code:" AssociatedControlID="dataAfiCode" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataAfiCode" DataSourceID="AfiCodeAfiDataSource" DataTextField="ClientName" DataValueField="AfiCode" SelectedValue='<%# Bind("AfiCode") %>' AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
					<data:AfiDataSource ID="AfiCodeAfiDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataProductCode" runat="server" Text="Product Code:" AssociatedControlID="dataProductCode" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataProductCode" DataSourceID="ProductCodeProductDataSource" DataTextField="ProductDescription" DataValueField="ProductCode" SelectedValue='<%# Bind("ProductCode") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:ProductDataSource ID="ProductCodeProductDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUnit" runat="server" Text="Unit:" AssociatedControlID="dataUnit" /></td>
        <td>
					<data:EntityDropDownList runat="server" ID="dataUnit" DataSourceID="UnitUnitTableDataSource" DataTextField="UnitDescrption" DataValueField="UnitCode" SelectedValue='<%# Bind("Unit") %>' AppendNullItem="true" Required="false" NullItemText="< Please Choose ...>" />
					<data:UnitTableDataSource ID="UnitUnitTableDataSource" runat="server" SelectMethod="GetAll"  />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataQuantity" runat="server" Text="Quantity:" AssociatedControlID="dataQuantity" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataQuantity" Text='<%# Bind("Quantity") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataQuantity" runat="server" Display="Dynamic" ControlToValidate="dataQuantity" ErrorMessage="Invalid value" MaximumValue="2147483647" MinimumValue="-2147483648" Type="Integer"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataUnitCost" runat="server" Text="Unit Cost:" AssociatedControlID="dataUnitCost" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataUnitCost" Text='<%# Bind("UnitCost") %>'></asp:TextBox><asp:RangeValidator ID="RangeVal_dataUnitCost" runat="server" Display="Dynamic" ControlToValidate="dataUnitCost" ErrorMessage="Invalid value" MaximumValue="999999999" MinimumValue="-999999999" Type="Double"></asp:RangeValidator>
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCoverPeriodFrom" runat="server" Text="Cover Period From:" AssociatedControlID="dataCoverPeriodFrom" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCoverPeriodFrom" Text='<%# Bind("CoverPeriodFrom", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCoverPeriodFrom" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			<tr>
        <td class="literal"><asp:Label ID="lbldataCoverPeriodTo" runat="server" Text="Cover Period To:" AssociatedControlID="dataCoverPeriodTo" /></td>
        <td>
					<asp:TextBox runat="server" ID="dataCoverPeriodTo" Text='<%# Bind("CoverPeriodTo", "{0:d}") %>' MaxLength="10"></asp:TextBox><asp:ImageButton ID="cal_dataCoverPeriodTo" runat="server" SkinID="CalendarImageButton" OnClientClick="javascript:showCalendarControl(this.previousSibling);return false;" />
				</td>
			</tr>
			
		</table>

	</ItemTemplate>
</asp:FormView>


